package com.regex.web.entity.sys;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.regex.web.common.excel.annotation.ExcelField;
import com.regex.web.entity.AutoIdBaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author mhy
 * @since 2020-05-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_dict")
public class DictDTO extends AutoIdBaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 类型
     */
    @TableField("type")
    @ExcelField(title="类型", type=0, align=2 , sort=1, dictType="")
    @NotBlank(message="类型不能为空")
    private String type;

    /**
     * 值
     */
    @TableField("value")
    @ExcelField(title="值", type=0, align=2 , sort=2, dictType="")
    @NotBlank(message="值不能为空")
    private String value;

    /**
     * 名称
     */
    @TableField("lable")
    @ExcelField(title="名称", type=0, align=2 , sort=3, dictType="")
    @NotBlank(message="名称不能为空")
    private String lable;

    /**
     * 描述
     */
    @TableField("description")
    @ExcelField(title="描述", type=0, align=2 , sort=4, dictType="")
    @NotBlank(message="描述不能为空")
    private String description;

    /**
     * 排序
     */
    @TableField("sort")
    @ExcelField(title="排序", type=0, align=2 , sort=5, dictType="")
    private Integer sort;


    @Override
    protected Serializable pkVal() {
        return super.pkVal();
    }

}
